package com.chunuo.blogs.dao;

import com.chunuo.blogs.entity.Blogs;
import com.chunuo.blogs.entity.BlogsFIling;
import com.chunuo.blogs.entity.SearchBean;

import java.util.List;
import java.util.Map;

/**
 * 类的作用
 *
 * @author liujiamiao
 * @email 2544296058@qq.com
 * @date 2020-05-20 11:04
 */
public interface BlogsDao {

    List<Blogs> findAll(SearchBean search);

    Blogs findById(Integer id);

    List<BlogsFIling> findFiling();

    List <Blogs> findFilingBlogs(Integer year);

    void save(Blogs blogs);

    void update(Blogs blogs);

    void delete(Integer id);

}
